<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>填写客人信息 预定流程 <{$Think.SYS_SITENAME}></title>
<meta name="keywords" content="旅游,旅游网,周边游,国内旅游,特价旅游,出境旅游,特价酒店,旅游度假,四川,成都,重庆">
<meta name="description" content="梦之旅（mzl5.com）是中国最简单,最快捷,最方便,性价比最高，旅游资讯最全的经济型旅游网!提供'一站式服务'自助游,周边旅游,国内旅游,出境旅游及酒店预定，实现你的旅游梦想,来自北京,上海,广州,杭州,西藏的游客" />
<link href="__PUBLIC__/css/ds_sy.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/css/right.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/css/left.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/css/top.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/css/otherall.css" type="text/css" rel="stylesheet" />
</head>
<body>
<center>
    	<{$tophtml}>
        <include file="public:topchufaindex" />
        <!--top end-->
</center>
<br>
 <div id="w1000" align="left">
      
      <div>
      	<strong><h1>行程确认</h1></strong><hr size="1" width="100%"><br>
       <form action="/pay/paythree" method="post" name="formpaytwo" id="formpaytwo">
        <volist name="syscookie['cart']" id="vo">
           
            <div>预订产品信息</div>
            <div><a target="_blank" href="<{$vo.prourl}>"><strong><{$vo.proname}></strong></a></div>
           <br>
            <div>游客信息</div>
            <div >
              <for start="1" end="$vo['chengren'] + $vo['et']">
               <div style="height:35px;">
               第<{$i}>位姓名:<input name="gukename_<{$key}>_<{$i}>" id="gukename_<{$key}>_<{$i}>" type="text" /> 联系方式：<input name="tel_<{$key}>_<{$i}>" id="tel_<{$key}>_<{$i}>" type="text" /> 
               性别:<select name="sex_<{$key}>_<{$i}>">
                <option value="男">男</option>
                 <option value="女">女</option>
               </select>
               
               </div>
              </for>
         </div>
         <hr size="1" width="100%">
           <br>
        </volist>
        <div>
          您的姓名:<input name="usernamelx" id="usernamelx" type="text"  value="<{$Think.const.__USERNAME__}>" />
          &nbsp;电子邮件：<input name="useremail" id="useremail" type="text"  value="" />
          
        </div>
        
        
        <div>
        	<input name="mysubmit" id="mysubmit" type="button" value="结 帐" /> &nbsp; &nbsp; &nbsp;<input name="backgocart" id="backgocart" type="button" value="返回购物车" />
        </div>
        
         </form>
      </div>

  
</div>
<script language="javascript">
$(document).ready(function(){
	
	
	//提示用户是否登陆
	logionflag="<{$Think.cookie.uchome_auth}>";
	if(logionflag==""){
		if(confirm("你是否要登陆？")){
			$("#userlogin").click();
		}
	}
	
	
	//返回购物车界面
    $("#backgocart").bind("click",function(){
		$("#formpaytwo").attr("action","/pay/cart");
		$("#formpaytwo").submit();
	});
	
	//检查表单
	$("#mysubmit").bind("click",function(){
		window.cflag=true;
		$("input[id^='gukename_']").each(function(){
			v=$(this).val();
			if(v==""){
				if(window.cflag==true){
					alert("联系人姓名不能为空");
					$(this).focus();
					window.cflag=false;
					return false;
				}
			}
		});
		
		$("input[id^='tel_']").each(function(){
			v=$(this).val();
			if(v==""){
				if(window.cflag==true){
					alert("联系方式不能为空");
					$(this).focus();
					window.cflag=false;
					return false;
				}
			}
		});
		
		
		var usernamelx=$("#usernamelx").val();
		
		if(usernamelx==""){
			alert("用户名不能为空");
			$("#usernamelx").focus();	
			return false;
		}
		
		useremail=$("#useremail").val();
		if(!useremail.match(/^[\w\-\_\.]+@[\w\_\-]+\.[\w\-\_\.]+$/)){
			alert("请输入正确的电子邮件");
			$("#useremail").focus();	
			return false;
		}
		
		
		
		
		if(window.cflag==false){
			return false;	
		}else{
			$("#formpaytwo").attr("action","/pay/paythree");
			$("#formpaytwo").submit();
				
		}
		
	});
	
	
	
});

</script>

</body>
</html>